import {observable,action} from "mobx"
import http from '../config/http'
class loginStore {
    @observable
    isLogin =false;
    @observable
    token =null;
    @observable
    userInfo ={};

    @action
    login(account,password) {
        console.log(account,password);
        // http.post("/login",{
        //     account:account,
        //     password:password,
        // }).then((response)=>{
        //     console.log(response);
        // });
        // this.isLogin=true;
    }
    @action
    destroy(){
        this.isLogin=false;
    }

}

export default loginStore;
